package thn.glf.org.personalfinancial;

import thn.glf.org.personalfinancial.model.FinancialMonthAdapter;
import thn.glf.org.personalfinancial.objData.FinancialMonth;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.ExpandableListView;

public class MoneyOfMonthActivity extends Activity {
	private ExpandableListView lv;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.moneyofmonth);
		this.lv=(ExpandableListView)findViewById(R.id.lst);
		FinancialMonth financialMonth=new FinancialMonth();
		financialMonth.setmContext(this);
		lv.setAdapter(new FinancialMonthAdapter(this, financialMonth.getListCurrent()));
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.money_of_month, menu);
		return true;
	}

}
